removes object literals, adds structure for mvc with constructors