Using scopes to get class name