Shows how to create modules that behave as a singleton and a factory for a common object.