replaced overcomplicated description; added minimal client and server code