updated chapter 6