refactored setter/getter and book models