sort of treating a class like a type