accelerometer example with elbow extension exercise