Breaking out the calculate probability into classes.