add cout method