Lewis acid-catalyzed sequential transformations: straightforward preparation of functional dihydropyridines