Excercises from chapter 7