added code for solution 'GENETIC1'