complete problem 9