A simple implement of client and server.