Added showGen(); function