Working through Adam Freeman's book Pro Angular JS