added toString and a constructor taking a string parameter to the message class (currently empty methods)