Extraction of an indigenous medicinal plant and synthesis of novel heterocyclic compounds:study of their pharmacological activities