Fragrant resin used in medicines and perfumes