Creating documents from all the input sources