Uses switch/case statements just like solution, compiles with no errors, haven't tested if it runs properly, or removed previously used if statement