Implementation of modelMessage class