some more basic doubly linked code