added comments to each of the givens lines to make it easier to understand.