Ex6: new dataset 3 solution