lesson 3-1, inject $rootScope into controller