adding Greedy scheduling