Simple doubly linked list excercise