Logic to turn on/off lamps is now in a different class. Thanks to Luis Rodero for his useful answer