Gregor Mendel found out that treats depends on inherited factors. Also, he study science and math. He then study inheritance of treats and beginning to experiment. So, then he discover that traits depend on inherited factors while he experiment with peas. He had a garden to test with pea plants.