Use if else statements instead of switch statements