Genetics is the study of heredity and traits that are passed from parents to offspring. A trait is a characteristic like eye color or hair texture that varies between individuals. Genes determine traits by coding for proteins. Gregor Mendel conducted early studies on heredity by breeding pea plants and established that traits are passed in discrete units (alleles) and assort independently. Dominant alleles mask recessive alleles when present, and genotypes describe an organism's allele combination while phenotypes describe observable traits. Punnett squares predict offspring genotypes and phenotypes from parental crosses.