at end of problem 6