Synthesis of 'N' and , or 'S' containing hetrocyclic compounds as potential biologically active compounds