Solve task 3.