Traversing the created link list