Add some chap02 codes.