lecture 5
merging