using switch case