Returns a list of objects by the given class.
1 string class
the class to get.
1 table
the list of objects.