got a simple on/off switch.
code to get the switch working.