add correct solution for task6