add example of using pool directly