class become vector