Ternary example

Before the ternary