I will add a few thoughts.
Collective nouns (nouns which name a group) use singular verbs when acting as a unit, but plural verbs when the individuals in that group are acting independently.
Examples:
"The class is going on a field trip."
Here, even though a class is many people, the word "class" is replaced by the pronoun "it" and uses "is", because the GROUP is acting as ONE unit.
"The army is prepared to deploy."
Again, the whole army is acting as ONE unit.
"The class are from several different countries."
Here, the plural ("are") matches, because the "class" cannot be from different countries as ONE unit, but as individuals. Here, the pronoun replacement would be "they" and not "it".