Origins of Mendelism