Segmentated add_node function to each sub class