An _exercise_ in angular.js