updated example

shows how to send a message to chat