add a docstring with an example