classify_children doesn't need to take children as a parameter.