Move setter functionality from context2.js to model.js
Move setter functionality from context2.js to model.js