First draft of the client code