"class" is used as a adjective to describe "library" in this sentence. It tells what kind of library it was. So in this sentence, "class" is not a noun.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.