examples from the ng-book