finish problem 22