added server code

added colin’s server code