added moving avg lib