Gregor Mendel was the first to understand genetics through his experiments with pea plants in which he discovered dominant and recessive traits. He developed the Punnett square to predict the expression of traits based on alleles. Genes hold the DNA code for building and maintaining an organism and are passed from parents to offspring. The genotype is an organism's full genetic makeup determined by alleles, while the phenotype describes observable traits influenced both by genes and the environment. Natural selection can act on phenotypes to influence evolution over time. Some traits like eye color are inherited through DNA, while environmental traits like language are acquired rather than genetic.