Added a SocketServer class and make MyServer use it