create server.cpp - server code