simplified leds into a class