Rewrote chapter 5
Added the code from chapter 5 to the repo