update chapter 3 source