following tut from http://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app#.