High schools must offer flex credits