problem 5 solutions
problem 6 solution
problem 7 solution