changed book year_published and edition instance vars type checking to case statements; added an attritbute reader for edition to the Book class