EEPROM for 10 LEDs digitalWrite

hello, i have 10 leds controlled by serial monitor (on,1), (off,2) ,or (st,6), 1,2, and 6 are assined to digital pins 2,3,7. but im trying to add the memory incase something happened like the powers goes off ? i have seen couple of examples online for something like EEPROM array ?

https://www.arduino.cc/en/Reference/EEPROM