Added overloads for operator<< and operator>>