A Singleton class for embedded systems