added script for similarity calculation