package Shapes is
   Too_Big : exception;
   type Shape is tagged record
      Side : Integer range 0 .. 10;
   end record;
   function Size (S : Shape) return Integer is (S.Side);
   procedure Grow (S : in out Shape; By : Integer)
   with Pre'Class => By in 0 .. 10,
        Exceptional_Cases => (Too_Big => S.Side = S.Side'Old);
   type Square is new Shape with record
      Filled : Boolean;
   end record;
   overriding procedure Grow (S : in out Square; By : Integer)
   with Pre'Class => By in 0 .. 10,
        Exceptional_Cases => (Too_Big => S.Side = S.Side'Old);
end Shapes;
