State classes must be exported too