Books are shelved according to subject in a library.