The code from chapter 5 after completing each of the challenges.