moving average example algorithm
fixed some dependency declarations