Add the accelerometer class