Finished problem 22