 
 import Utility
 
-class BibleInitialSelect {
+struct BibleInitialSelect {
     
     class LanguageScore : Equatable {
         let iso3: String

    }
    
    private var adapter: SettingsAdapter
    private var selected: [Bible]?
    
    init(adapter: SettingsAdapter) {
        self.adapter = adapter
    }
    
    deinit {
        print("****** Deinit BibleSequence ******")
    }
    
    func getBiblesSelected(locales: [Locale]) -> [Bible] {
        self.selected = [Bible]()
        for locale in locales {
            let langs = self.getInitialLanguageDetail(locale: locale)
            let langsSorted = langs.sorted{ $0.score > $1.score }

            }
            for bb in biblesSorted {
                let bible = Bible(bibleId: bb.bibleId, abbr: bb.abbr, iso3: bb.iso3, name: bb.name)
                if !selected.contains(bible) {
                    selected.append(bible)
                }
            }
        }
        return selected
    }

    /**
    * Retrieve all iso3 languages for a locale and sort those languages by a score that is
    * based upon population and country match with the locale
