Add chap03 codes (WIP).