Here's how it worked in high school.