6.1 listing for traversal linked list