Added comments to problem1