Fix examples (closes #1)