added accelerometer example