Implements has_next() method in list item
implements the print method