Working of gyro code...