fixed ternary example