rewriting Chapter 3