problem 6
problem 4