Using simpler ternary function invocation example