updating switch-example