Valuation of Inventories: A Cost Basis Approach