Using switch instead of if, if..