solution for task5