added ChatMessage which can be used to send the message and handles the addition to the history