the switch statement makes the code both more readable and safer.