Added Paginator class