inital add of greedy.c