accounting for material cost