add example code to docstring