Add paginate method to base