Pagination code and parse example