Update factory.coffee

Indent changed to tabs and class creation added