LAPEER, Mich. (AP) – A group of Michigan students had a close encounter with thousands of honeybees as part of a lesson about the insects.

The Flint Journal reports the seventh-grade students are part of the Outdoor Club at Rolland-Warner Middle School in Lapeer.

READ MORE: Meet These Two Bear Cubs Who Have Become Inseparable At The Detroit Zoo

Science teacher Chris Prill led students Thursday in creating smoke to temper the bees, cracking open compartments of hives in a clearing behind the school to harvest honey. The experience helps teach students about how bees live and produce honey.

READ MORE: Delta Wants Other Airlines To Share ‘No-Fly’ Lists To Help Stop Unruly Passengers

Prill says it was the second harvest, with the first yielding 25 gallons of honey. Honey will be bottled and sold to help fund the program.

Twelve-year-old Justin Ranshaw says he took part to get over a fear of bees after he was attacked last year by wasps.

MORE NEWS: Veteran Needs Help With Home Repairs

© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.