bindClass for extend