changed this example to reflect the current API
Merge pull request #4 from meyerson/master

changed this example to reflect the current API