Instead of passing the string could we just pass a reference to the class name?