pterostilbene belongs to a class of compounds called phytoalexins, which are naturally produced by plants when under attack by pathogens such as bacteria or fungi.