CS373: new conditional smoothing solution of set 5