Changed EDCalc.avg_cost a @property