now an instance of SinglyLinkedList can be used in a foreach construct