Fixing example to match current Pool API
Conversion to new-style classes
Merge pull request #58 from haizaar/master

Fixing example to match current Pool API.