create a new class to handle paging.
create a new class to handle paging.