Attempt at pool class