added some example code for speed_acc