added logic for the "A" letter grades