Added comments to each line of problem 2

Specified what each line of code was doing as per directions