Uses program.grade_{min,max} for open classes.

It was previously hard-coded at (7,12), now it will check properly.