Creating a base class for the client