Update README.md

added switch example