Complete problem 5