Complete problem 1