added Similarity class