add example in pkgdoc