modified example of pagination.