     }
     
     func selectColorAtIndex(_ index:Int) {
-        self.hue = self.colorPallett.hueAtIndex(index)
-        self.saturation = self.colorPallett.saturationAtIndex(index)
+        self.hue = self.colorPalett.hueAtIndex(index)
+        self.saturation = self.colorPalett.saturationAtIndex(index)
         updateBackgroundColor()
         saveHsb()
     }

    
    func loadHsb() {
        let userDefaults = UserDefaults.standard
        self.hue = userDefaults.value(forKey:ViewController.hueKey) as? Int ?? colorPallett.defaultHue
        self.saturation = userDefaults.value(forKey:ViewController.saturationKey) as? Int ?? colorPallett.defaultSaturation
        self.brightness = userDefaults.value(forKey:ViewController.brightnessKey) as? Int ?? colorPallett.defaultBrightness
    }
    
    func saveHsb() {

    
    @IBOutlet var settingsButton: UIButton?
    
    let colorPalett = ColorPalett()
    var hue = 0
    var saturation = 0
    var brightness = 0
