imu code converted to class