Considering you did it several times in your program, that seems inconsistent somehow. But anyway: You pass things to a function by putting it in parentheses behind the function name, like function(this_object), or function(that_object), or whatever. In this case, you want to pass the class list, which is an array of Classes, so your function would take a Class whatever[].