added get component by class method