Novel Synthesis of Condensed Pyridin-2(1H)-one and Pyrimidine Derivatives