Base class of singleton pattern