Create a separate function to build the attachments array so that the same array...