added switch exercise