Implementation of a trivial client