First version of the client