(CNN) This vending machine isn't dispensing sugary treats, fatty chips, or high-calorie sodas. It's dropping knowledge.

An elementary school in Umatilla, Florida, unveiled the machine this week as part of the state's literacy week . They held a pep rally for the event, singing and dancing before the reveal.

The school's principal and media specialist held a pep rally to unveil the new vending machine.

"The kids were so excited, they were trying to buy books out of it before we even unveiled it," said Umatilla Elementary School Principal Dianne Dwyer.

When the students are kind, get their homework done, or simply make good choices, they are rewarded with "Bulldog Bucks."

Then they go to the school's media specialist, Susan Caldwell, who oversees the library, book fair, and this new vending machine. She takes their 'bucks' and gives them coins to use at the machine to select their book of choice.

Read More