add simple constructor for the message struct