Create factory_pattern.js