early version of client/server example