Finish the exercise of chapter 7