Solved lamps problem