classes to component