Add an example code snippet to the docs