adding a sample factory