Create factory.php