add class for singleton pattern