Submitting the final version of my code.  The final report will be submitted later since I need to go to the school to use LaTeX.