Better way to print out the object