updated chapter 2 edoc