How AI could help rebuild the middle class