Fixes examples to be a bit more functional.
Merge pull request #3 from patcon/patch-1

Fixes examples to be a bit more functional.