updated RunningAverage.c