Accelerometter example