All of the children who win a ticket to the chocolate factory receive their just rewards based on their behavior.
The overweight, candy-obsessed Augustus Gloop, for instance, refuses to listen to either his parents or Willy Wonka when they tell him not to lean so far over into the chocolate river to scoop the liquid chocolate into his mouth. Mr. Wonka doesn't want him dirtying the chocolate with his hands, while his parents don't want him to fall in the river. Augustus does fall in and is sucked up into a glass tube, where he gets stuck and then is swept away by an explosion of chocolate.
Likewise, though Mr. Wonka warns her not to, Violet tries the blueberry chewing gum that has not been perfected and turns into a giant blueberry. The spoiled Mike Teavee insists on being put into a television, becomes tiny, and then must be stretched out so that he becomes very tall and thin.
Only Charlie, a poor boy who is lucky to get one candy bar a year, behaves well in the factory. The rest of the children are spoiled brats who suffer for it. Charlie, however, is rewarded by finding out that he will be the one to inherit Mr. Wonka's factory. The good karma of Charlie's decency and kindness win the day.