Added an accelerometer based sample