finish code samples for chapter 9
clean up unused code in controller specs