[CH3:1][NH:2][C:3]1[N:7]=[CH:6][NH:5][C:4]=1[C:8]([NH:10][CH3:11])=[O:9].[C:12]([CH2:15][C:16](=O)[CH3:17])(=O)[CH3:13].[ClH:19]>CO>[Cl-:19].[CH3:1][N+:2]1[C:3]2[N:7]([CH:6]=[N:5][C:4]=2[C:8]([NH:10][CH3:11])=[O:9])[C:12]([CH3:13])=[CH:15][C:16]=1[CH3:17]Theophyllidine (hydrochloride), 27.0 g (0.142 mol), from step 1, was heated in 1400 ml methanol under reflux for 5 hours with acetylacetone, 28.7 g (0.284 mol), and 20 g concentrated hydrochloric acid. The solvent was then removed on the rotary evaporator and the yellow residue was purified by recrystallization from ethanol/diethyl ether.