Homework for chapter 2