package body DLists is
   procedure Append (L : in out List; X : Integer) is
      N : constant Node_Ptr := new Node'(Value => X, Prev => L.Tail, Next => null);
   begin
      if L.Tail = null then
         L.Head := N;
      else
         L.Tail.Next := N;
      end if;
      L.Tail := N;
      L.Count := L.Count + 1;
   end Append;
end DLists;
