added server code to the project