Il dottore pagò l’architetto mentre lui chiudeva la cartella
the doctor.MASC.SG . pay.IND.PFV.3SG . the architect.MASC.SG . while he.NOM.MASC.SG . close.IND.IPFV.3SG . the folder.FEM.SG . 
The doctor paid the architect, while he was closing the folder.