updated chat example