finished Greedy