Added pagination class for result sets