Production Smoothing via Inventories