Added old source files for archiving purposes
Refactored both files to be more readable and approachable