add the getBrightness method