added ChatMessage to the model