Sample code for provider, service, and factory