getInstance() method added