understand the chat example