update example to work with latest syntax
Merge pull request #131 from seamusabshere/patch-2

update example to work with latest syntax