created first "switch" loop which matches my "if" statements