Isoamylacetate is a pheromone that is released on the skin when a honeybee stings its victim. The pheromone has a sweet smell and attracts other bees to join the fight. The structure of isoamylacetate is shown below. What functional group does it contain?

A. ether
B. ester
C. carboxylic acid
D. alcohol