added comments to the constructor