add grade calculation