added switch statement example