added another way to get sum and average with object summary statics