added solution for task 5 from hw1