Added exercise 3 of chapter 6.