Update function print_object()