extracted object creation into ObjectBuilder.js