Lamp Lighter sample code