Improved Programming Model Using AI: Shifting from Imperative Coding to Declarative Intent