Implement TMessage class