Functor, Singleton, Memory Management and Logging system