finished chapter_18