Add __str__ method to Node object