add exercise of chapter 8