Added Comments to Problem 3

I added comments to Problem 3. This should make it easier to understand.
-Isaac