the first version of my knn program