added a text param to the message class