first working draft of concatenate.pl