Finish exercise 8.14