Added example for factory initialization pitfall