Update factory pattern.md