Exercises chapter 8 solved