Exercises chapter 6 done