Meiosis produces gametes with half the normal number of chromosomes. It involves two cell divisions which results in four haploid cells from one diploid cell. During meiosis, homologous chromosomes pair up and may exchange genetic material through crossing over. This introduces genetic variation. Mendel's experiments with pea plants established basic principles of heredity including dominant/recessive traits and independent assortment of traits. Genes located on chromosomes code for traits and exist in different alleles that are inherited according to Mendelian genetics.