simple averager script