My code as I work through Manning's AngularJS in Action book