Update for addLast

Updated version of the addLast method so that it works for the concatenation method