reference code for the angularJS course