AngularJS Exam Solution