updated example_chat.php