Fix many bugs in chapter-04s.
Merge pull request #27 from lijunle/patch-04s

Fix many bugs in chapter-04s.