The Mechanism of Mendelian heredity