package Shapes is
   type Shape is tagged record
      Size : Natural := 1;
   end record;
   function Area (S : Shape) return Natural is (S.Size);
   not overriding procedure Grow (S : in out Shape) with Pre => S.Size < 1000;

   type Square is new Shape with null record;
   overriding function Area (S : Square) return Natural is (S.Size / 2);
   overriding procedure Shrink (S : in out Square);
   not overriding procedure Grow (S : in out Square) with Pre => S.Size < 1000;
end Shapes;
