Exercises done chapter 9