defining __str__ in node