A simple and elegant pagination class.