use list representation and helper class to handle pagination