code for http://www.revillweb.com/tutorials/angularjs-in-30-minutes-angularjs-tutorial/