Update example usage
Typo
Merge pull request #2 from wilsonge/patch-1

Update example use of invoke function