creating server implementation

commenting on it later