adding and totaling line items