Article: Creating merging function