Added a function that 'groups' the classifications of similar objects