Added function to join lines top-to-bottom