a class about memery pool