Research has shown that children are capable of complex reasoning, even creating subgroups within their categories.