bufferpool class almost done