The Molecular Basis of Sex and Differentiation