Renamed subexpression 'tree' array to 'children'