`$user` should be `$class` ?