Add basic thread class and worker classes