Ternary operator example