Implement new_node()