Synthesis of compounds 5a–5u and 6a–6j. Reagents and conditions were: (a) Br–CH2COOC2H5, K2CO3, EtOH, reflux, 12 h; (b) NH2NH2·H2O, EtOH, reflux, 4–6 h. (c) For compounds 5a–5k EtOH, KOH, reflux, 4 h, overnight stirring and for 5l–5u glacial acetic acid, reflux.