Improving Pool class
Adding auxiliary functions