singleton pattern in oop - Search