working chat3 example