Gregor Mendel studied traits in pea plants such as color and height. He found that traits are controlled by alleles - dominant alleles will be expressed over recessive alleles in the first generation. Through subsequent generations and self-pollination, he discovered that recessive traits can be expressed according to his laws of inheritance and principles of dominance and segregation. Mendel's experiments laid the foundations for modern genetics.