added chapter 4 and chapter 6