added iterator to linked list