allHeadings -> headings

The variable name gets changed halfway through the explanation and then changed back, which is confusing. I just regularized the name so it's consistent all the way through.