Update chapter.md

Added most of code log