MSE calculations for B and C. Score code for D.