toString() method and stream '<<' overload implemented for some classes