added an accelerometer example