added accelerometer sample