pool class