Initial public server and client code