Accelerometer example