added service and factory examples