solution for task 4.5