updated chapter 5