Typo fixed

$old_class should be $class