Finished Greedy pset 5