Solve problem #4
Solve problem #6
Solve problem #7