made from http://docs.angularjs.org/tutorial