the discovery of oil led to affordable cars and the manufacturing of inexpensive steel to great cities that scraped the sky , while modern marvels connected the nation through electric lights and a transcontinental railroad .