Added paginator class for models