Put "grades" into a service that mock the ngResource interface.