made DoublyLinkedList inherit from abstract class List