finished chapter_4