server I wrote for cs3214