Chapter 3

Code from chapter 3