added some psuedocode for combining arrays