Added skeleton code for moving average filter