Finish exercise for chapter 16