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

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

    }
    
    func updateBackgroundColor() {
        let color = self.colorPalett.colorWithHue(self.hue, saturation: self.saturation, brightness: self.brightness)
        self.view.backgroundColor = color
    }
    
