my_inject method variation