Working on an average of n inputs (n is user determined in first input)