Server part of the code is reconstructed based on new design.
Polymorphism structure is applied to message part of the  server.