write merge_sequence function
write feed_line
write main function
fixes compile