Created Socket classes to handle servers and clients to the server.