complete problem 3