Damien adding moving average calculator, still sadly lacking tests.