made pagination class