Added iostream to ex.