problem 8
problem 9