Finish exercises of chapter 5