extend text class