The valence shell of the element X contains 2 electrons in a 5s sub shell. Below that shell, element X has a partially filled 4d sub shell. What type of element is X?