the library contains tens of thousands of books on thousands of shelves. the different sections include an invisibility section, a section on dragons, and the restricted section at the very back, barred by a rope. students need a signed note of permission from a teacher to peruse the restricted section, as it holds books about powerful dark subject matter that is never taught at hogwarts, and is only used by older students studying advanced defence against the dark arts.