AngularJS Book Chapter4 Example