Automation and Economic Transition