Change all print methods to use ostream&