changed rights and added euclidean distance example