Adds docstring with example