your $class was supposed to be $classFQN, right?