Learning to Reason