Homework for chapter 3.6