There were history textbooks left lying around, like scattered treasure.
The history books were scattered around like treasure.