Added stub similarity and distance classes