Exercise done in class with Angularjs.