Lessons from the Mexican-American war