organize cost_calculator hierarchy