Calculating Average Grade (beta)