prefect factory class

prefect factory class