Added a simple accelerometer example