print-methods function

Print the object