Library will thrive in a digital world: Stokes