first draft of use of Traits in DoublyLinkedList code