Easy-to-implement pagination class complete with example usage.