changed file names from 'create' to 'factory'