add example code and document