Exercises in Chapter 6 done