Added Model constructor.