Added a code example to documentation