Solve problem 2
Solve problem 3