Making Worker class not generic