debugging class grade calculation