Added the 'no-conditional-logic' solution.