Synthesis, characterisation and bioevaluation of five and six membered heterocycles containing heteroatoms