adding predict_expert function