add example from @jesstelford, closes #1