Add code that listens to the accelerometer and determines the speed based on its readings