change code for testing code about chapter 3.