Template-directed synthesis: use of a reversible reaction