Wrote code to classify and output probabilities of classes