Dominant and recessive genes and their effect on phenotype