can you add a comment below `if gradeset:` that briefly summarizes what is being done in this `if` clause?