Create Factory_edit

Slightly edited factory code