added draft of similarity.py