Updated genetic.c