implemented genotype and phenotype classes