added switch state debounce example