Working array summing script