Simple code to track and update inventory.