Import service and factory in example.