Luck, smarts lead from Uganda to UC Berkeley