simplify Model constructor.