An easy to use class to create pagination