filled out generate method in worker class