refactoring
creata interfaccia IMessageServer