add example code for last doc