Controlling lighting using BasicProgram