Math class for Pool