implemented simple moving system