Moved printObj functions into operator overloads