rewrite chapter 3