With the help of his pea plants, Gregor Mendel cracked the secret of heredity, how traits are passed from parents to children to grandchildren.