small addition to ternaries example