further developped and tested the message class