Add spec for grade calculation