first version of confusion matrix