Overloaded << and >> working