LCTHW exercise 13: Replace switch with an if else statement.