seperated code into distinct file: Analysis, Download, and App