Solved task 4