Added exercise 6 of chapter 6.