package Shapes is
   type Base is abstract tagged null record;
   function Id (X : Base) return Integer is abstract;
   type Leaf is new Base with null record;
   overriding function Id (X : Leaf) return Integer is (7);
   type Twig is new Base with null record;
   overriding function Id (X : Twig) return Integer is (11);
end Shapes;
