Using scripts to turn on or off lights

Formatting code suggestions.