Separate Files

Put the setContents() function into different files to make the source
files easier to navigate