Following Oreilly Angularjs book