My try and interpretation of AngularJS codeschool course