A simple pagination class