Scheme 4: Synthesis of pyridine and 4H-pyran derivatives 18 and 20.