added creation of confusion matrix