A class of organic compounds containing three ring structures, one of which is made up of more than one kind of atom, usually carbon plus another atom. The heterocycle may be either aromatic or nonaromatic