Tutorial assignment for chapter 7