Solution for task_2