Designed a basic code of the server.