SingletonAndFactoryPatternExample