Move worker defination to teacher.php