I get a little confuse, do you mean this: (changes line 219 to 239 of my commit to this):
```php
// Store the object and execute the method
$this->class[$class] = new $class();
$this->class[$class]->$function($params);
```