ternaries example