Add paginate method