Added code example to docs.