Greedy class