The Fundamentals of Library Classification