package body Stock is
   procedure Restock (Items : in out Shelf; Position : Bin; Amount : Quantity) is
   begin
      Items(Position) := Items(Position) + Amount;
   end Restock;

   procedure Reserve (Items : in out Shelf; Position : Bin; Amount : Quantity;
                      Accepted : out Boolean) is
   begin
      if Amount <= Items(Position) then
         Items(Position) := Items(Position) - Amount;
         Accepted := True;
      else
         Accepted := False;
      end if;
   end Reserve;
end Stock;
