added thread class