Why $class is not enough here?