Change knn blog sample codeg