Stochastic Imperfect Inventory Systems: Inventory and Production Management