package Shapes is
   type Letter is ('a', 'b');
   type Vec is record
      X, Y : Integer := 0;
   end record;
   function "+" (L, R : Vec) return Vec is ((L.X + R.X, L.Y + R.Y))
     with Pre => L.X in -1000 .. 1000 and L.Y in -1000 .. 1000 and R.X in -1000 .. 1000 and R.Y in -1000 .. 1000;
   type Bounded is private with Type_Invariant => Valid (Bounded);
   function Valid (B : Bounded) return Boolean;
   function Make (N : Natural) return Bounded with Pre => N <= 10;
   function Value (B : Bounded) return Natural;
private
   type Bounded is record
      N : Natural := 0;
   end record;
   function Valid (B : Bounded) return Boolean is (B.N <= 10);
   function Make (N : Natural) return Bounded is ((N => N));
   function Value (B : Bounded) return Natural is (B.N);
end Shapes;
