chapter-5 merge