Solved 1/2 from task#2