Adding the Paginator class