more advanced examples of ng-controllers