Pagination with simple mathod