wrote demo code to light LED from switch