added ternary operator to lesson1 solution