#86 pagination class for displaying in templates