adding passing greedy.c