fixed example (closes #2)