6.4 listing for removing a node from a linked list