Now able to add n grades

Able to add n grades using sentinel-controlled repetition.