[CH3:1][NH:2][CH3:3].Br[CH2:5][CH2:6][CH2:7][CH2:8][C:9]#[N:10]>[OH-].[Na+]>[CH3:1][N:2]([CH3:3])[CH2:5][CH2:6][CH2:7][CH2:8][C:9]#[N:10]A mixture of dimethylamine (4 mL, 40% in water) and 5-bromo-pentanenitrile (2.3 mL, 20 mmol) is stirred for 24 h. The resulting reaction mixture is diluted with sodium hydroxide solution (10 mL, 5M) and extracted with ether. The ether extract is dried over K2CO3 and concentrated under reduced pressure to give an oil (1.5 g) which is used without further purification.