changed tanimoto to a class