and daniel spent his waking hours in the library where he threw himself into books on mons magic , philosophies , bestiaries , and anything else that would ensure him class transfer for second semester .