Complete problem 3