Added index attribute to Book class