implement the second angular.js exercise from the front page