Added more sample code for sending messages back and forth.