Homework for chapter 5