refactoring and fixing specs and finishing excersises for chapter 9