added code example with @FactoryProperties