SI: Update Ex_6 code