solve task2 from lesson2