Modified BookDemo class