finish implementing the system (only tested one worker)