fix bugs and add chap11 works