Synthetic and structural organic chemistry of 5 and 6 membered nitrogen, sulphur and oxygen containing compounds