fixed some of the syntax in example

The example was broken, I updated it to work with latest version of code.