Code with Switch statements