working simple client and server