add chap06 example, but still have many bugs to fix