code for recursive linked list 7