did most of problem 9