Created and updated the inventory