Mexican finds solution to centuries-old problem