Create a factory for the client class