Exercise 7.35 using the switch statement and enums