gridsearch and examples