using switch statements for flow control
created an enumerator
using enumerators and switch statements