def all_children(parent)
parent.children.each do |child|
all_children(child)
end
end