Solve problem 6
Solve problem 7