Addng main Paginator class and tests
refactoring an tests