finished problem 22