sample app from the Angular JS tutorial