Added a ternary example.