adding example server code