added constructors for ModeArray and Mode