Adding factory
Update factory