Finish exercises of chapter 6