added switch case in readme