Synthesis, characterisation and biological evaluation of heterocyclic compounds and their derivatives