Added exercieses from chapter 7. 2 new tests and cleaner flash code.