Excercises for chapter 7