Add chapter 10

Could use more elsifs to cut down on conditional evaluation