Analysis of Inventory Systems