Added setBrightness() method