update chapter 5, chapter 4 unfinished