Reaction of polymer building blocks for the formation of block-copolymers