modes_of_objects function

Find modes of objects