Example code for the server