added calculateMovingAverage method
hostFilter Implementation phase IV