initial hw3 commit
formatting and a refactoring main function
Finilizing HW3
Merge pull request #3 from mill1256/hw3

Hw3