Study and practice examples from ng-book