added cout snippet