Fix bug and adding chapter 9 Part I.