Finished the pagination class. Just needs validation and output.