added paginator class