added if statements for Grade=letter