problem 7
problem 6