     }
     
     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()
     }

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

extension ViewController : SettingsPopoverDelegate {
    
    func numberOfColors(in settingsPopover: SettingsPopover) -> Int {
        return self.colorPalett.numColors
    }
    
    func brightness(in settingsPopover: SettingsPopover) -> Int {
