problem 7
problem 10