Finish chapter 7 (loops) and add chapter 8 (FSMs)