docs/examples: add basic example (closes #23)