* adjust the logic of printBook().