initial files broken into specific files

took the existing code and created needed folders and external files to modularize the code.