Replaced Message's parseMessage method with a new constructor