Exercises chapter 6
finished