begin adding grades code