Example with ternary