got basic output function working with cout!