Add an example for writing the client