linked list with tails - with Michael