Adding the initial code for the chat server