Extend example with idea for factory.