Can we insert summary function to calculate scores for matrix form?