TRANSFORM DOCUMENT TO CODE: A STRAIGHTFORWARD EXPLANATION