worker class