initial commit
changed if statement to a switch statement