Answer:
Cinnamaldehyde, the active fragrance in cinnamon, contains a functional group called an aldehyde (-CHO). Anethole, which provides the flavor of anise, contains an ether functional group (-O-). Vanillin, the main component in vanilla, contains a functional group called an aldehyde (-CHO) and a methoxy (-OCH3) group. Ethanol, the active ingredient in beer, contains an alcohol (-OH) functional group.
If I were to invent a new spice, I might season it with a molecule called allyl isothiocyanate, which is responsible for the pungent taste of mustard and horseradish. Allyl isothiocyanate contains a functional group called an isothiocyanate (-N=C=S), which is a type of organosulfur compound. Other spices that contain isothiocyanates include wasabi and some types of radishes.