going through the famous Egghead series on Angular JS