First iteration of doubly linked list