use classes component