Completed problem 2 for assignment1. Need to do more testing.
Completed problem 2. Will submit now.