Add sample code for sending messages