Solve Problem 6
Solve Problem 7