Library classification system