Exercises 4, 7 and 8 for chapter 03.