fixed analysis 2, now have model for cost