Implemented more of the pool class