add method getPaginationData() in example