preliminary draft of cost analyzer