Fix typo
Use declared variables
Declare variables
Merge pull request #105 from tt/fix-example

Fix example