Create teachingFactory.php