Finish exercise 7.29