Fixing example to match current Pool API