added constructor to Message class