Create teacherFactory.php