A punnet square is used to visually see the dominant and recessive traits. Mendel's law says that alleles pair independently during the formation of gametes (aka sex cells). This means that traits are transmitted to offspring independently of one another.
Viruses is the answer to this