add the example program for #1971
update the doc