Context: A Viking boy called Hiccup (voice: Jay Baruchel) introduces his village of Berk ("it's been here for seven generations, but every single building is new"). The village is attacked by dragons, who steal food (mostly sheep) and set things on fire (hence all the new buildings). The villagers grab weapons and try to fight the dragons off. Despite being told by every adult in sight to go indoors, Hiccup hauls out a bolas-shooting cannon he made himself and shoots a dragon out of the night sky. (As assistant to the village blacksmith, Gobber (voice: Craig Ferguson), Hiccup has access to tools and materials and knows how to use them.) The dragon lands in the woods some distance form the village and no one believes that he hit anything, so it's the next day before Hiccup can go looking for it. It turns out to be a rare and deadly Night Fury, but Hiccup can't make himself kill it. Instead he releases it -- whereupon it also refrains from killing Hiccup -- and it flies off through the trees.Hiccup discovers that the dragon (which he eventually calls Toothless because of its retractable teeth) has holed up in a steep-sided valley because it can no longer fly more than a few feet at a time. While sketching the dragon, Hiccup realizes that it's missing a tail fin. He makes a prosthetic tail fin out of leather. The new fin helps, but Toothless can't control it and inadvertently takes Hiccup for a ride, giving him a clear idea of what's needed to help the dragon fly right. In a series of workshop and test flight scenes, Hiccup builds and perfects a saddle, a control mechanism for the tail fin, and a safety harness.Meanwhile, Hiccup's father Stoick (voice: Gerard Butler) has signed him up for dragon training with Gobber, which is very different from the training he's already doing with Toothless: he's going to learn to fight dragons. At first, he's the worst student in the class. Since Hiccup has always been an accident-prone klutz, this comes as no surprise to his classmates Astrid (voice: America Ferrera), Snotlout (voice: Jonah Hill), Fishlegs (voice: Christopher Mintz-Plasse), Ruffnut (voice: Kristen Wiig), and her twin brother Tuffnut (voice: T.J. Miller). (Hiccup's a little sweet on Astrid.) Before long, Hiccup is able to use some things he's learned while working with Toothless to soothe and manage the school's practice dragons. (It turns out dragons are just big kitty-cats: they like to be petted, there's a kind of grass that's like cat-nip to them, and they love fish (but hate eels).) When Stoick returns from a failed search for the fabled nest of the dragons, he's surprised but thrilled to hear that his son is doing brilliantly at dragon training. He gives Hiccup a horned helmet made from one of his dead mother's breastplates. But Hiccup, as usual, is unable to get around his father's expectations and speak frankly, so he can't explain that his success at dragon school is unlikely to lead to the slaying of any dragons.When Hiccup subdues a practice dragon, unintentionally earning the privilege of killing it before the entire village, he's horrified and decides to flee with Toothless. However Astrid, having noticed Hiccup's frequent disappearances and secretive behavior, is suspicious. She follows him to the hidden valley and sees Toothless. Unable to explain his relationship with the dragon, Hiccup takes her flying, and she's captivated. But they get caught up in a flock of dragons returning to their nest carrying food. The dragons fly inside a mountainous island and drop the food into a pit, which turns out to contain a huge, terrifying, and very hungry dragon that eats the smaller ones if they don't bring it enough food. Hiccup and Astrid and shocked to realize that the dragons have been stealing their sheep to keep from being eaten themselves. When they get home, 
 Question: What kind of class is Hiccup attending?
Output: dragon-training