problem 6, 7
problem 6, 7