A Sample AngularJS Service using the factory way