Added Singleton Template and ResourceManager class