[C:1]([CH2:3]P(=O)(OCC)OCC)#[N:2].[H-].[Na+].[CH:14]([C:16]1[CH:25]=[CH:24][C:19]([C:20]([O:22][CH3:23])=[O:21])=[CH:18][CH:17]=1)=O>COCCOC>[CH3:23][O:22][C:20]([C:19]1[CH:24]=[CH:25][C:16]([CH:14]=[CH:3][C:1]#[N:2])=[CH:17][CH:18]=1)=[O:21]To a stirred solution of diethyl cyanomethylphosphonate (96 ml) in 1,2-dimethoxyethane (375 ml) was added sodium hydride (60%: 22g) portionwise below 5° C. and the stirring was continued at 0° C. for half an hour and then at ambient temperature for half an hour. The reaction mixture was recooled to 0° C. and a solution of methyl p-formylbenzoate (75 g) in 1,2-dimethoxyethane (375 ml) was added to the reaction mixture below 6° C. The reaction mixture was quenched with saturated aqueous sodium bicarbonate and diluted with ethyl acetate. The organic layer was washed with water and aqueous saturated sodium bicarbonate and dried over magnesium sulfate and filtered. The solvent was removed in vacuo and the solid product was recrystallized from ethanol to give 4-methoxycarbonylcinnamonitrile (52.12 g) as a white needle.