Completed calculateProbablities method
Merging