Implementation of Client class