Synthesis of naturally occuring carbocyclic and biologically active oxygen and nitrogen ring compounds