getCustomInstance now is also instantiating using new keyword