Assembling or shaping of elements