acceleration calculation and graph done