Added a config object to factory. So when we call getInstance the factory gives this object to new instance of client