Implement a simple object pool