Update MovingAvg.R