added textmessage class