hw 6: task 3: GA