add Similarity, compile, but issues line 122 because of cast