Updated the population function and added Genes.