Add comments to explain the solutions