Using switch statement.