Created MessageObject class