Working through examples from https://github.com/shyamseshadri/angularjs-book