completed problem 22