Create project function from service class