modified example of pagination(unnecessary import removed).