Factory create method not working

thanks problem solved.