pool.h finished, to be tested