package Shapes is
   type Kind is (Circle, Square);

   type Shape (K : Kind := Circle) is record
      case K is
         when Circle =>
            Radius : Natural;
         when Square =>
            Side : Natural;
      end case;
   end record;

   function Side_Of (S : Shape) return Natural is (S.Side);
end Shapes;
