A method for synthesising a composition of different templated molecules comprising a plurality of functional groups, said method comprising the steps of i) providing a plurality of templates having different coding elements and/or a different order of coding elements, said templates comprising a plurality of nucleotides and a sequence of from 3 to 100 coding elements, wherein each coding element comprises at least one recognition group capable of recognising a predetermined complementing element, and wherein each coding element comprises or consists of from 4 to 100 subunits, ii) providing a plurality of building blocks, wherein each building block comprises a) at least one complementing element comprising at least one recognition group capable of recognising a predetermined coding element, b) at least one functional entity comprising at least one functional group and at least one reactive group, and c) at least one linker separating the at least one functional entity from the at least one complementing element, iii) contacting each of said coding elements with a complementing element capable of recognising said coding element, said complementing element comprising a plurality of nucleotides, iv) forming a complementing template comprising at least 3 complementing elements in the form of a linear sequence of complementing elements by enzymatically linking said at least 3 complementing elements, and v) obtaining a composition of different templated molecules each comprising covalently linked, functional groups by linking a functional group of at least one functional entity to a functional group of another functional entity, wherein the templated molecule is linked by means of a linker to the complementing template or template that templated the synthesis of the templated molecule, and wherein the synthesis of the templated molecules does not involve ribosome mediated translation of a nucleic acid. i) providing a plurality of templates having different coding elements and/or a different order of coding elements, said templates comprising a plurality of nucleotides and a sequence of from 3 to 100 coding elements, wherein each coding element comprises at least one recognition group capable of recognising a predetermined complementing element, and wherein each coding element comprises or consists of from 4 to 100 subunits, ii) providing a plurality of building blocks, wherein each building block comprises a) at least one complementing element comprising at least one recognition group capable of recognising a predetermined coding element, b) at least one functional entity comprising at least one functional group and at least one reactive group, and c) at least one linker separating the at least one functional entity from the at least one complementing element, a) at least one complementing element comprising at least one recognition group capable of recognising a predetermined coding element, b) at least one functional entity comprising at least one functional group and at least one reactive group, and c) at least one linker separating the at least one functional entity from the at least one complementing element, iii) contacting each of said coding elements with a complementing element capable of recognising said coding element, said complementing element comprising a plurality of nucleotides, iv) forming a complementing template comprising at least 3 complementing elements in the form of a linear sequence of complementing elements by enzymatically linking said at least 3 complementing elements, and v) obtaining a composition of different templated molecules each comprising covalently linked, functional groups by linking a functional group of at least one functional entity to a functional group of another functional entity,